﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2014/11/8 15:25:35
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace YoucaiReader.Entities.Model
{
    [DataContract]
    public class JsonBase<T> where T : new()
    {
        [DataMember(Name = "c")]
        public string Code { get; set; }

        [DataMember(Name = "m")]
        public string Message { get; set; }

        [DataMember(Name = "r")]
        public int ItemsCount { get; set; }

        [DataMember(Name = "t")]
        public T JsonObjects { get; set; }
    }
}
